package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @ClassName: ShoppingCartService
 * @Package: com.sky.service
 * @Author: 金磊
 * @CreateDate: 2025/4/16 - 17:38
 * @Version: V1.0.0
 * @Description:
 */

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);
    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();
    /**
     * 清空购物车
     */
    void cleanShoppingCart();

    /**
     * 减少购物车商品数量
     * @param shoppingCartDTO
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
